﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}Validform_v5.3.2_min.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
    
    
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>销售机会管理<b class="tip"></b>新建销售机会</div>
    &nbsp;<a class="btn" id="Button3" href="{:U('lst',array('p'=>$p))}">返回销售机会列表</a>
        <form name="main_form" method="POST" class="demoform" action="__SELF__" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$data['id']}"/> 
            <input type="hidden" name='p' value="{$p}"/>
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="alert alert-info">编号</td>
                <td>
                    <input  type="text" name="chance_id" value="{$data['chance_id']}" datatype="*0-20" errormsg="编号最多20个字符！" />

                </td>
                <td class="alert alert-info">机会来源</td>
                <td>
                    <input  type="text" name="chance_from" value="{$data['chance_from']}" datatype="*0-16" errormsg="机会来源最多20个字符！"/>

                </td>
            </tr>
            <tr>
                <td class="alert alert-info">客户名称</td>
                <td>
                    <input  type="text" name="client_name" value="{$data['client_name']}" datatype="*1-20" errormsg="客户名称最多20个字符！"/>
                  <span style="color:red">*</span>
                </td>
                <td class="alert alert-info">成功几率(1-100)</td>
                <td>
                    <input  type="text" name="ok_probable" value="{$data['ok_probable']}" datatype="/^[0-9]{1,2}$|100/" errormsg="成功率请填写1-100！" />
                  <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">概要</td>
                <td>
                    <input size="60"  type="text" name="outline" value="{$data['outline']}" datatype="*1-12" errormsg="概要最多输入50个字符！" />
                  <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <tr>
                <td class="alert alert-info">联系人</td>
                <td>
                    <input  type="text" name="contact_name" value="{$data['contact_name']}"datatype="*0-12" errormsg="名字最多输入12个字符！" />

                </td>
                <td class="alert alert-info">联系人电话</td>
                <td>
                    <input  type="text" name="contact_phone" value="{$data['contact_phone']}" datatype="n0-11" errormsg="请正确输入手机号！" />

                </td>
            </tr>
            <tr>
                <td class="alert alert-info">机会描述</td>
                <td>
                    <textarea rows='10' cols="100" name="description" datatype="*1-100" errormsg="概述最多200个字符！">{$data['description']}</textarea>
                    <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info"><font color="gray">创建人名称</font></td>
                <td >
                    <input   type="text" readonly name="create_name" value="{$data['create_name']}" />
                  <span style="color:red">*</span>
                </td>
                <td class="alert alert-info"><font color="gray">创建时间</font></td>
                <td>
                    <input  type="text" readonly name="create_time" value="{$data['create_time']|date=\"Y-m-d H:i:s\",###}" />
                  <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info"><font color="gray">指派给</font></td>
                <td >
                    <select readonly name="give_name" onmousedown="return false;">
                        <option>请指派</option>
                    </select>
                </td>
                <td class="alert alert-info"><font color="gray">指派时间</font></td>
                <td>
                    <input  type="text" readonly name="give_time" value="" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input class="btn" type="submit" class="button" value=" 确定 " />
                    <input class="btn" type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>

</body>
</html>
<script>
    $(".demoform").Validform();
</script>